﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DB_QLSV;
using DB_QLSV.BusinessClassLibrary;

namespace UnittestDatabase
{
    public class UnitKhoaHoc
    {

        public static bool ThemKhoaHoc()
        {
            KhoaHoc khoahoc = new KhoaHoc();
            khoahoc.makh = "2006";
            khoahoc.nam = 2006;
            khoahoc.ngaybatdau = new DateTime(2006, 2, 3);
            khoahoc.ngayketthuc = new DateTime(2010, 2, 3);
            return KhoaHocBUS.ThemKhoaHoc(khoahoc);
        }
        public static bool UpdateKhoaHoc()
        {
            KhoaHoc khoahoc = new KhoaHoc();
            khoahoc.makh = "2006";
            khoahoc.nam = 2007;
            khoahoc.ngaybatdau = new DateTime(2006, 2, 3);
            khoahoc.ngayketthuc = new DateTime(2010, 2, 3);
            return KhoaHocBUS.CapNhatKhoaHoc("2006", khoahoc);
        }
        public static bool Xoakhoahoc()
        {
            return KhoaHocBUS.XoaKhoaHoc("2006");
        }
        public static List<KhoaHoc> LayDS()
        {
            return KhoaHocBUS.LayDanhSach();
        }
    }
}
